import React,{PureComponent} from 'react'
import {BrowserRouter, Route, Switch} from 'react-router-dom'
import App from '../App'
import NotFound from '../containers/NotFound'
import Home from '../containers/Home'
import showPage from '../containers/showPage'
import ChartDemo from '../containers/ChartDemo'
import Chart from '../containers/Chart'


class RouterMap extends PureComponent {

  render() {
    return (
      <div>
        <App>
          <BrowserRouter>
            <Switch>
              <Route path="/" exact component={Home}/>
              <Route path="/Home" exact component={Home}/>
              <Route path="/showPage" exact component={showPage}/>
              <Route path="/ChartDemo" exact component={ChartDemo}/>
              <Route path="/Chart" exact component={Chart}/>


              <Route component={NotFound}/>
            </Switch>
          </BrowserRouter>
        </App>
      </div>
    )
  }
}

export default RouterMap
